﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.Migrator;

[Table("zt_action")]
[Index("Actor", Name = "actor")]
[Index("Date", Name = "date")]
[Index("ObjectId", Name = "objectID")]
public partial class ZtAction
{
    [Key]
    [Column("id", TypeName = "mediumint(8) unsigned")]
    public uint Id { get; set; }

    [Column("objectType")]
    [StringLength(30)]
    public string ObjectType { get; set; } = null!;

    [Column("objectID", TypeName = "mediumint(8) unsigned")]
    public uint ObjectId { get; set; }

    [Column("actor")]
    [StringLength(100)]
    public string Actor { get; set; } = null!;

    [Column("action")]
    [StringLength(30)]
    public string Action { get; set; } = null!;

    [Column("date", TypeName = "datetime")]
    public DateTime Date { get; set; }

    [Column("comment", TypeName = "text")]
    public string Comment { get; set; } = null!;

    [Column("extra", TypeName = "text")]
    public string Extra { get; set; } = null!;
}